package entitybeans;

import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity(name="MedicoPlano")
@Table(name="TB_MEDI_PLAN_SAUD")
@IdClass(MedicoPlanoPK.class)
public class MedicoPlanoEntity {
	@Id
	@ManyToOne
	@JoinColumn(name="CD_MEDI")
	private MedicoEntity medico;
	@Id
	@ManyToOne
	@JoinColumn(name="CD_PLAN_SAUD")
	private PlanoSaudeEntity plano;
	@Id
	@Column(name="CD_PLAN_SAUD")
	private Calendar dataInicio;
	@Column(name="DT_FIM_VIGE")
	private Calendar dataFim;

	public MedicoEntity getMedico() {
		return medico;
	}

	public void setMedico(MedicoEntity medico) {
		this.medico = medico;
	}

	public PlanoSaudeEntity getPlano() {
		return plano;
	}

	public void setPlano(PlanoSaudeEntity plano) {
		this.plano = plano;
	}

	public Calendar getDataInicio() {
		return dataInicio;
	}

	public void setDataInicio(Calendar dataInicio) {
		this.dataInicio = dataInicio;
	}

	public Calendar getDataFim() {
		return dataFim;
	}

	public void setDataFim(Calendar dataFim) {
		this.dataFim = dataFim;
	}

}
